package cn.bbdx.qsh.baking.service.impl;

import cn.bbdx.qsh.baking.mapper.CommentMapper;
import cn.bbdx.qsh.baking.pojo.entity.Comment;
import cn.bbdx.qsh.baking.pojo.vo.CommentVO;
import cn.bbdx.qsh.baking.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    CommentMapper mapper;
    @Override
    public int insert(Comment comment) {
        return mapper.insert(comment);
    }

    @Override
    public List<CommentVO> selectByContentId(Long id) {
        return mapper.selectByContentId(id);
    }
}
